# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-num2words
pkgver=0.5.10
pkgrel=3
pkgdesc="Modules to convert numbers to words"
url="https://github.com/savoirfairelinux/num2words"
arch="noarch"
license="LGPL-2.1-or-later"
depends="python3 py3-docopt py3-delegator"
makedepends="py3-setuptools"
source="https://pypi.python.org/packages/source/n/num2words/num2words-$pkgver.tar.gz"
options="!check" # Broken tests
builddir="$srcdir/num2words-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="16938cc3af36719975986b2d9caeb3853ca5a11fa7d982531420296f4c3730b096efb16d24d84a5260a2510914ab86436083dc9c63a372728cf745f3a1a5ba77  num2words-0.5.10.tar.gz"
